<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!-- jquery基础库-->
<script src="${ctx}/static/jslib/jquery/jquery-1.11.1.min.js"></script>

<!-- easyui主题图标库 -->
<link href="${ctx}/static/jslib/easyui-lyExt/theme/<c:out value="${cookie.themeName.value}" default="default"/>/easyui.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/static/jslib/easyui-lyExt/theme/icon.css" rel="stylesheet" type="text/css" />

<!-- easyui基础库 -->
<script src="${ctx}/static/jslib/easyui-1.3.6/jquery.easyui.min.js" type="text/javascript"></script>
<script src="${ctx}/static/jslib/easyui-1.3.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

<!-- jquery基础扩展库 By流云-->
<script src="${ctx}/static/jslib/easyui-lyExt/jquery.jdirk.min.js"></script>

<!-- easyui扩展库 By流云 -->
<script src="${ctx}/static/jslib/easyui-lyExt/jeasyui.extensions.all.min.js"></script>

<!-- easyui主题图标扩展库 -->
<link href="${ctx}/static/jslib/easyui-lyExt/jeasyui.extensions.min.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/static/jslib/easyui-lyExt/icons/icon-all.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/static/jslib/easyui-lyExt/jeasyui.icons.all.min.js"></script>

<!-- easyui扩展库By孙宇 -->    
<script src="${ctx}/static/jslib/easyui-syExt/tree.js"></script>
<!-- 项目样式 -->
<link rel="stylesheet" href="${ctx}/static/style/other.css"></link>

<script>
//全局的AJAX访问，处理AJAX清求时SESSION超时
$.ajaxSetup({
    contentType:"application/x-www-form-urlencoded;charset=utf-8",
    complete:function(XMLHttpRequest,textStatus){
          //通过XMLHttpRequest取得响应头，sessionstatus           
          var sessionstatus=XMLHttpRequest.getResponseHeader("sessionstatus"); 
          if(sessionstatus=="timeout"){
               //跳转的登录页面
               window.location.replace('${ctx}/a/login');
       		}	
    }
});
</script>
